// 页面路径：main.js
import App from './App'
import {$dialog, $toast, coverHref, navigateTo, redirectTo} from '@/assets/js/util.js'
import {createSSRApp} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	app.config.globalProperties.$toast = $toast;
	app.config.globalProperties.$dialog = $dialog;
	app.config.globalProperties.$coverHref = coverHref;
	app.config.globalProperties.$uniPush = navigateTo;
	app.config.globalProperties.$uniRedirectTo = redirectTo;
	return {
		app,
		// Vuex // 注意，如果 nvue 使用 vuex 的各种map工具方法时，必须 return Vuex
	}
}
